<?php

namespace Controller\User;

class MorePhoto extends Base {

	public function actionIndex() {
        $userInfo = $this->currentUserInfo;
		$userId = $userInfo['UserId'];
		$breedId = $userInfo['BreedId'];
		$userInfo['breed'] = \Business\Breed::instance()->getNameById($breedId);
		if (!$userInfo['Username']) {
			\Lib\Util\Comm::redirect('/setting.html');
		}

		$photos = \Business\User::instance()->getUserPhotosByUserId($userId);
		$this->assign('photos', $photos);
		$this->display();
	}
}